package com.example.demo.service;

import com.example.demo.entity.AnAttachFile;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Mr.we
 * @since 2024-06-02
 */
public interface IAnAttachFileService extends IService<AnAttachFile> {
    /**
     * 上传文件到本地
     * @param file 文件
     * @throws IOException e
     * @return uploadFile
     */
    String uploadFile(MultipartFile file) throws IOException;
    /**
     * 删除文件
     * @param fileName 文件名称
     */
    void deleteFile(String fileName);

}
